import {GLMVersion, GptVersion} from "@/app/constants";
export interface DialogType{
    // 头像
    avatar : string;
    // // 对话ID
    // dialogId : number;
    // // 是否已读
    // read : boolean;
    // 小标题
    subTitle : string;
    // 最后一次对话时间
    timestamp : number;
    // 聊天头
    title : string;
    //消息数
    count : number;
}
export interface SessionConfig{
    glmConfig :GLMVersion;
    gptVersion :GptVersion;
    // 会话标识  1:GLM  2:GPT 3:腾讯混元 4：文言一心
    huiHuaFlag : number;
}

export interface Message{
    avatar : string;
    content : string;
    message_type : MessageType;
    time: number;
    direction?: MessageDirection;
    role : MessageRole;
    isStop : boolean;

}
export enum MessageType {
    Link = "link",
    Pic = "pic",
    Text = "text",
}

export enum MessageDirection{
    Send = 0,
    Receive,
}
export enum MessageRole{
    system = 'system',
    user = 'user',
    assistant = 'assistant'
}